html, body, #container, #main{
    height: 100%;
    overflow: hidden;
}

#main{
    left:0;
}

#login{
    width:300px;
    height:200px;
    position:absolute;
    left:50%;
    top:50%;
    margin-top: -100px;
    margin-left: -150px;
    background: rgba( 0, 0, 0, .3 );
    border:1px solid rgba( 255, 255, 255, .2 );
    border-radius: 10px;
    box-shadow: 1px 5px 5px rgba( 0, 0, 0, .3 );
}

#login form{
    padding: 20px;
}

#login form label{
    font-size:18px;
    font-weight: bold;
}
#login form div{
    margin-top: 15px;
}
#login form input[type="text"], #login form input[type=password]{
    width:196px;
    padding:3px 10px;
    font-size: 16px; 
    font-weight: bold;
    border-radius:5px;
}


#login form input[type=submit]{
    border: 1px solid rgba( 255, 255, 255, .2 );
    padding: 5px 15px;
    border-radius: 5px;
    cursor:pointer;
    background: rgba( 0, 0, 0, .1 );
    color:rgba( 255, 255, 255, .6 );
    letter-spacing: 3px;
    font-weight: bold;
    margin:10px 10px 0px 62px;
}

#login form input[type=submit]:hover{
    background:rgba( 255, 0, 0, .4 );
    color:white;
}

#err-message-box{
    display: block;
    position: absolute;
    padding: 10px 0;
    text-align: center;
    width: 300px;
    background: rgb( 150, 0, 0 );
    border-radius: 5px;
    border:1px solid #666;
    top:-40px;
    opacity: 0;
    display:none;
    font-size: 14px;
}

#err-message-box:after{
    content: "";
    display: block;
    position: absolute;
    bottom:-6px;
    left:144px;
    width:10px;
    height:10px;
    background: rgb( 150, 0, 0 );
    border:1px solid #666;
    border-left:none;
    border-top:none;
    -webkit-transform: rotate(45deg);
    -moz-transform: rotate(45deg);
    -ms-transform: rotate(45deg);
    -o-transform: rotate(45deg);
}